package com.xizi.lotterySystem.dao.dataobject;

import com.xizi.lotterySystem.service.enumerate.ActivityStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class ActivityDO extends BaseDO{

    private String activityName;

    private String description;

    private ActivityStatusEnum status;

    public Boolean valid() {
        return status == ActivityStatusEnum.RUNNING;
    }

}
